//
//  TouristinfoCell.m
//  SXH
//
//  Created by Ryan on 16/3/18.
//  Copyright © 2016年 lyss. All rights reserved.
//

#import "TouristinfoCell.h"

@implementation TouristinfoCell

- (void)awakeFromNib {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)deleteCell:(id)sender
{
    if([_delegate respondsToSelector:@selector(deleteCell:)])
    {
        [_delegate deleteCell:self];
    }
}

- (void)setModel:(EditTouristModel *)model
{
    self.nameLabel.text = model.title;
    self.idNumLabel.text = model.document_num;
}
@end
